***NOTE: CASES RANDOMLY ASSIGNED RESPONDENT ID NUMBER (V1) TO ENSURE SUBJECT ANONYMITY***




***NOTE: V2 IS AN EXPERIMENTAL CONDITION DUMMY WHERE 1 IS THE CONTROL GROUP AND 2 IS THE TREATMENT GROUP***




***NOTE: SIX RESPONDENTS DID NOT ANSWER THE PAY FOR PLAY QUESTION AND WERE THUS EXCLUDED FROM THE ANALYSIS***
***DEPENDENT VARIABLE***
gen payplayers = .
replace payplayers = 0 if (V3==1)
replace payplayers = .25 if (V3==2)
replace payplayers = .5 if (V3==3)
replace payplayers = .75 if (V3==4)
replace payplayers = 1 if (V3==5)
tab V3
tab payplayers




***RECODE OF RACIAL RESENTMENT ITEMS***
generate irish_racial_resentment =.
replace irish_racial_resentment = 1 if (V10==1)
replace irish_racial_resentment = .75 if (V10==2)
replace irish_racial_resentment = .5 if (V10==3)
replace irish_racial_resentment = .25 if (V10==4)
replace irish_racial_resentment = 0 if (V10==5)
tab V10
tab irish_racial_resentment

generate black_try_racial_resentment =.
replace black_try_racial_resentment = 1 if (V11==1)
replace black_try_racial_resentment = .75 if (V11==2)
replace black_try_racial_resentment = .5 if (V11==3)
replace black_try_racial_resentment = .25 if (V11==4)
replace black_try_racial_resentment = 0 if (V11==5)
tab V11
tab black_try_racial_resentment

generate generation_racial_resentment =.
replace generation_racial_resentment = 0 if (V12==1)
replace generation_racial_resentment = .25 if (V12==2)
replace generation_racial_resentment = .5 if (V12==3)
replace generation_racial_resentment = .75 if (V12==4)
replace generation_racial_resentment = 1 if (V12==5)
tab V12
tab generation_racial_resentment

generate deserve_racial_resentment =.
replace deserve_racial_resentment = 0 if (V13==1)
replace deserve_racial_resentment = .25 if (V13==2)
replace deserve_racial_resentment = .5 if (V13==3)
replace deserve_racial_resentment = .75 if (V13==4)
replace deserve_racial_resentment = 1 if (V13==5)
tab V13
tab deserve_racial_resentment




***RACIAL RESENTMENT INDEX***
gen racial_resentment_index = (irish_racial_resentment + black_try_racial_resentment + generation_racial_resentment + deserve_racial_resentment)/4
tab racial_resentment_index




***RECODE OF ATTENTION CHECK***
generate attention_check =.
replace attention_check = 1 if (V15==.)
replace attention_check =0 if (V15 <= 5)
tab V15
tab attention_check




**NOTE: V14 IS A SELF-REPORTED DISTRACTION MEASURE BASED ON DOING OTHER ACTIVITIES DURING THE EXPERIMENT.*** 
***A SCORE OF "0" INDICATES THE RESPONDENT WAS ENGAGED IN SOME OTHER ACTIVITY DURING THE EXPREIMENT WHILE A SCORE OF "1" INDICATES THE RESPONDENT WAS NOT ENGAGED IN OTHER ACTIVITIES.***


 

***REGRESSION RESULTS FOR TABLE 3 AND FIGURE 2***
set scheme s1mono
set level 84, permanently
regress payplayers i.V2 racial_resentment_index i.V2#c.racial_resentment_index if V9==1 & attention_check==1 & V14==1
margins V2, at(racial_resentment_index=(0(.1)1)) vsquish
marginsplot, recast(line) recastci(rarea)
